<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<title><?=(isset($title) ? Html::chars($title) : '')?></title>
	<meta name="keywords" content="<?=(isset($keywords) ? $keywords : '')?>" />
	<meta name="description" content="<?=(isset($description) ? $description : '')?>" />
	<meta name="robots" content="index, follow" />
	<?php
		if (isset($meta)) foreach ($meta as $i) {
			echo '<meta' . Html::attributes($i) . ' />'."\n";
		}
	?>
	<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
	<link href="/styles/jquery-ui/ui-custom/jquery-ui.css" rel="stylesheet" type="text/css" />
	<link href="/styles/style.css" rel="stylesheet" type="text/css" />
	<?php
		if (isset($link)) foreach ($link as $i) {
			echo '<link' . Html::attributes($i) . ' />'."\n";
		}
	?>
	<link href="/styles/website.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="/scripts/jquery/jquery.js"></script>
	<script type="text/javascript" src="/scripts/jquery/jquery-ui.js"></script>
<!--	<script type="text/javascript" src="/scripts/main.js"></script>-->
<!--	<script type="text/javascript" src="/scripts/jquery/png-fix.js"></script>-->
	<?php
		/*
		<script type="text/javascript" src="/scripts/swfobject.js"></script>
		<script type="text/javascript">
			swfobject.embedSWF("/flash/preloader.swf", "flashcontent", "100%", "100%", "9.0.0");
		</script>
		*/
	?>
	<?if (isset($scripts)) foreach ($scripts as $script) :?>
		<script type="text/javascript" src="<?=Url::site($script)?>"></script>
	<?endforeach?>
</head>
<body>
    <div id="wraper">
        <?=$header;?>
        <div id="content">
            <?=$content;?>
        </div>
    </div>
    <div id="footer">
        <?=$footer;?>
    </div>
    <div id="attention" class="mainDialog">
        <div id="dialogHeader"><a href="#">close X</a></div>
        <div id="dialogText">
            <span id="dialogAttention">ATTENTION</span>
            Content featured on this site may be seen as slightly offensive and unsuitable for younger or more sensitive
            viewers. By you selecting ENTER, you fully agree to the <a href="#" class="termsOfUse">terms of service</a> and confirm you are over 18 years
            old and can view inappropriate content.
            
            <div class="dialogButtons">
                <div class="signsButtons">
                    <a href="#" class="enter">
                        <span class="blueMessege">ENTER</span>
                    </a>
                </div>
                <div class="signsButtons">
                    <a href="#" class="goBack">
                        <span class="blueMessege">GO BACK</span>
                    </a>
                </div>
            </div>
        </div>
    </div>
    <div id="termsOfUse" class="dialogWindow">
        <div class="blocHead">
            <span class="blueMessege"><?=$terms['name'];?><a href="#" class="closeDialog">close X</a></span>
        </div>
        <div class="newScroll">
            <?=$terms['text1'];?>
        </div>
    </div>
    <div id="discount" class="mainDialog dialogWindow">
        <div id="dialogHeader"><a href="#" class="alternativeClose">close X</a></div>
        <div id="dialogText">
            <span class="newLine"><strong>DISCOUNT CODES</strong></span>
            Use these active codes when ordering. 
            Please review the <a href="#" class="termsOfUse">terms of service</a> section. 
        </div>
    </div>
    <div id="mask" style="display: none;">&nbsp;</div>
</body>
</html>